export default {
    get<T>(url:string,query?:T){
        return uni.request({
        	url,
			data:query
        })
    },
    post<T>(url:string,body:T){
        return uni.request({
        	url,
			method:"POST",
			data:body
        })
    },
    put<T>(url:string,body:T){
        return uni.request({
        	url,
			method:"PUT",
			data:body
        })
    },
    delete<T>(url:string,query?:T){
        return uni.request({
        	url,
        	method:"DELETE",
        	data:query
        })
    },
}